package edu.sctu.nieyu.day20150617;

import java.io.File;

/**
 * Created by user01 on 2015/6/17.
 */
public class InputStreamClient {

    public static final String FILE_PATH = "D://test2";
    public static final String FILE_NEW_PATH = FILE_PATH +"//字节流练习.txt";

    public static final String FILE_PATH_ONE = "D://test2";
    public static final String FILE_NEW_PATH_ONE = FILE_PATH_ONE+"//字符流练习.txt";

    public static void main(String[] args) {
        InputStreamUtil inputStreamUtil = new InputStreamUtil();
        inputStreamUtil.addFile(new File(FILE_PATH));
        inputStreamUtil.createNewFile(FILE_NEW_PATH);

        inputStreamUtil.getInputStream();

        ReaderUtil readerUtil = new ReaderUtil();
        readerUtil.addFile(new File(FILE_PATH_ONE));
        readerUtil.createNewFile(FILE_NEW_PATH_ONE);

        readerUtil.getReader();
    }
}
